﻿<div data-ng-app="app">
    <div ng-controller="app.LogInController">
        <div>
            <div class="avgrund-cover"> </div>

            <aside class="avgrund-popup">
                <h2>Please log in.</h2>
                <form>
                    <input type="text" class="form-control" data-ng-model="user.username" placeholder="Username" />
                    <input type="password" class="form-control" data-ng-model="user.password" placeholder="Password" />
                </form>
                <button type="button" class="btn btn-custom-2" onclick="avgrund.deactivate();">Cancel</button>
                <button type="button" class="btn btn-custom-2" data-ng-click="Login()">Login</button>
            </aside>

        </div>
        <div class="container">
            <!--NavBar Start-->
            <nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
                <div class="container">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="#" style="color:black;">Joshua Yi</a>
                    </div>
                    <div class="navbar-collapse collapse">
                        <ul class="nav navbar-nav pull-right text-right">
                            <li>
                                <a href="#">Intro</a>
                            </li>
                            <li>
                                <a href="#Projects">Projects</a>
                            </li>
                            <li>
                                <a href="#Resume">Resume</a>
                            </li>
                            <li>
                                <a href="#AboutMe">About Me</a>
                            </li>
                            <li>
                                <a href="#Contact">Contact Me</a>
                            </li>
                            <li data-ng-show="token && (username=='Admin' || username=='admin')">
                                <a  href="#/Admin">Admin Control Panel</a>
                            </li>
                            <li data-ng-show="token">
                                <a href data-ng-click="Logout()">Logout</a>
                            </li>
                        </ul>
                    </div>
                </div>
                </nav>
                <!--NavBar End-->
        </div>
        <div class="row">

        </div>
        <div data-ng-view>

        </div>
    </div>
</div>
